#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date    : 2015-03-05 20:48:24
# @Author  : Your Name (you@example.org)
# @Link    : http://example.org
# @Version : $Id$


from lib.tornado_routes import route
from web.handler import BaseHandler
# from models import user as u

@route(r'/index/?', name='')
class IndexHandler(BaseHandler):
    def get(self):
        # user = u.User.create(name='shitao')
        # info = u.User.get(name='shitao')
        # self.write(info.name)
        # 
        self.render("index/index.html",)


# @route(r'/user/login/', name='user_login')
# class LoginHandler(BaseHandler):
#     def get(self):
#         self.session['user'] = 'mysuer'
#         self.session.save()

# @route(r'/user/logout/', name='user_logout')
# class LogoutHandler(BaseHandler):
#     def get(self):
#         self.session.clear()